Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbox2d.collision
Class PolygonDef

    java.lang.Object
      org.jbox2d.collision.ShapeDef
          org.jbox2d.collision.PolygonDef

    public class PolygonDef

extends ShapeDef

Field Summary
`java.util.List<Vec2>` | `vertices`

Fields inherited from class org.jbox2d.collision.ShapeDef
`categoryBits, density, friction, groupIndex, isSensor, maskBits, restitution, type, userData`

Constructor Summary
`PolygonDef()`

Method Summary
`void` | `setAsBox(float hx, float hy)`
`void` | `setAsBox(float hx, float hy, Vec2 center, float angle)`
`int` | `vertexCount()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### vertices

    public java.util.List<Vec2> vertices

Constructor Detail

### PolygonDef

    public PolygonDef()

Method Detail

### setAsBox

    public void setAsBox(float hx,
                         float hy)

### setAsBox

    public void setAsBox(float hx,
                         float hy,
                         Vec2 center,
                         float angle)

### vertexCount

    public int vertexCount()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD